package com.ruoyi.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: zhangzhe
 * @Date: 2023/9/26
 */

@Data
@TableName(value = "sys_task_record")
@ApiModel("任务记录表")
public class SysTaskRecord {

    @TableId
    @ApiModelProperty("任务记录id")
    private Long id;

    @ApiModelProperty("任务id")
    private Long taskId;

    @ApiModelProperty("发表内容")
    private String content;

    @ApiModelProperty("是否为事件 0：否  1：是")
    private Integer problem;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("经度")
    private String longitude;

    @ApiModelProperty("纬度")
    private String latitude;

    @ApiModelProperty("状态  0:停用，1:启用")
    private Integer state;

    @ApiModelProperty("用户id")
    private Long userId;

    @TableField(exist = false)
    @ApiModelProperty("附件")
    private List<SysRes> recordFile;

    @TableField(exist = false)
    @ApiModelProperty("问题")
    private List<SysIssueType> recordIssue;
}
